{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "95bdbb33",
   "metadata": {},
   "outputs": [],
   "source": [
    "{\n",
    " \"cells\": [\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"ea81908f\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"## 本周知识点\\n\",\n",
    "    \"\\n\",\n",
    "    \"### 1.字典的初试（{key:value})\\n\",\n",
    "    \">1. [字典的文档]()  \\n\",\n",
    "    \">2. 字典的重要属性： \\n\",\n",
    "    \">>1. 结构：key：value（键值对）\\n\",\n",
    "    \">>2. 字典是无序的，我们通过key去找value，就好像list用index查找value是一样的\\n\",\n",
    "    \">>3. 字典对key的定义有一定的要求：key是由“不可变”的数据结构才可以定义，list 是不能作为key来定义的。\\n\",\n",
    "    \">>4. 字典的key是唯一的（但是list的值不是唯一的）\\n\",\n",
    "    \">3. 字典的创建：\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"ead5dc44\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"### 2.字典的创建（常见的三种创建方法）\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"3076069f\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"> 1.info_01 ={key1:value，key2:value2，...}直接按照字典格式创建     \\n\",\n",
    "    \"> 2.info_02 = dict(key1=value1,key2=value2...)使用dict（）进行字典创建    \\n\",\n",
    "    \"> 3.info_03运用字典增加的方式新建字典\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 19,\n",
    "   \"id\": \"30f1242d\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu10001': 'xiaoming', 'stu10002': 'lihua', 'stu10003': 'xiaohong'}\\n\",\n",
    "      \"<class 'dict'>\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"info_01 = {\\n\",\n",
    "    \"    \\\"stu10001\\\":\\\"xiaoming\\\",\\n\",\n",
    "    \"    \\\"stu10002\\\":\\\"lihua\\\",\\n\",\n",
    "    \"    \\\"stu10003\\\":\\\"xiaohong\\\",\\n\",\n",
    "    \"#      \\\"student\\\":\\\"xiaohong\\\"\\n\",\n",
    "    \"}\\n\",\n",
    "    \"print(info_01)\\n\",\n",
    "    \"print(type(info))\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 13,\n",
    "   \"id\": \"6902fde7\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu1001': 'xiaoming', 'stu1002': 'lihua', 'stu1003': 'xiaohong'}\\n\",\n",
    "      \"<class 'dict'>\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"info_02 = dict(\\n\",\n",
    "    \"    stu1001=\\\"xiaoming\\\",\\n\",\n",
    "    \"    stu1002=\\\"lihua\\\",\\n\",\n",
    "    \"    stu1003=\\\"xiaohong\\\",\\n\",\n",
    "    \")\\n\",\n",
    "    \"print(info_02)\\n\",\n",
    "    \"print(type(info_02))\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 10,\n",
    "   \"id\": \"c24b3394\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu1001': 'xiaoming', 'stu1002': 'lihua', 'stu1003': 'xiaohong'}\\n\",\n",
    "      \"<class 'dict'>\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"info_03 = {} # 新建空字典\\n\",\n",
    "    \"info_03[\\\"stu1001\\\"] = \\\"xiaoming\\\"\\n\",\n",
    "    \"info_03[\\\"stu1002\\\"] = \\\"lihua\\\"\\n\",\n",
    "    \"info_03[\\\"stu1003\\\"] = \\\"xiaohong\\\"\\n\",\n",
    "    \"print(info_03)\\n\",\n",
    "    \"print(type(info_03))\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"77a31fd1\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"### 字典的增删改查\\n\",\n",
    "    \"> 1.字典的增加(和字典的第三种创建方式一致):\\n\",\n",
    "    \">> * info_03[\\\"stu10004\\\"] = \\\"huiru\\\"\\n\",\n",
    "    \"> 2.字典的查询\\n\",\n",
    "    \">> * info_03[key name]\\n\",\n",
    "    \">> * 正确的查询方式，应该先查询key是否存在字典当中，如下\\n\",\n",
    "    \">>> 1.key_name in info_03 ## 查看是否存在，如果存在，返回结果为Turn，不存在为False\\n\",\n",
    "    \">>> 2.info_03[key name]\\n\",\n",
    "    \"> 3.字典的修改\\n\",\n",
    "    \"    >> * 例如：修改info_03中的stu10003的值为Alex，if“stu10003” in info_03:info_03[\\\"stu100003\\\"] = \\\"Alex\\\" \\n\",\n",
    "    \"> 4.字典的删除    \\n\",\n",
    "    \"> 1.pop(key)     \\n\",\n",
    "    \"> 2.popitem()\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 21,\n",
    "   \"id\": \"d6cbaa4d\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu1001': 'xiaoming', 'stu1002': 'lihua', 'stu1003': 'xiaohong', 'stu10004': 'huiru'}\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"info_03[\\\"stu10004\\\"] = \\\"huiru\\\"\\n\",\n",
    "    \"print(info_03)\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 25,\n",
    "   \"id\": \"47f99624\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"data\": {\n",
    "      \"text/plain\": [\n",
    "       \"'xiaohong'\"\n",
    "      ]\n",
    "     },\n",
    "     \"execution_count\": 25,\n",
    "     \"metadata\": {},\n",
    "     \"output_type\": \"execute_result\"\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"# 用key查到value\\n\",\n",
    "    \"info_03[\\\"stu1003\\\"]\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 26,\n",
    "   \"id\": \"4a208333\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"stu10003\\n\",\n",
    "      \"查询的key不存在\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"# 正确的查询字典方式\\n\",\n",
    "    \"print(\\\"stu10003\\\") in info_03\\n\",\n",
    "    \"if\\\"stu10003\\\" in info_03:\\n\",\n",
    "    \"    print(info_03[\\\"stu10003\\\"])\\n\",\n",
    "    \"else:\\n\",\n",
    "    \"    print(\\\"查询的key不存在\\\")\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 28,\n",
    "   \"id\": \"4006c04b\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu1001': 'xiaoming', 'stu1002': 'lihua', 'stu1003': 'xiaohong', 'stu10004': 'huiru'}\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"# 修改：也要先查询key\\n\",\n",
    "    \"if \\\"stu10003\\\" in info_03:    \\n\",\n",
    "    \"    info_03[\\\"stu100003\\\"] = \\\"Alex\\\" \\n\",\n",
    "    \"print(info_03)\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 47,\n",
    "   \"id\": \"8fd473f7\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"ename\": \"SyntaxError\",\n",
    "     \"evalue\": \"invalid syntax (<ipython-input-47-45e93690f3e6>, line 2)\",\n",
    "     \"output_type\": \"error\",\n",
    "     \"traceback\": [\n",
    "      \"\\u001b[0;36m  File \\u001b[0;32m\\\"<ipython-input-47-45e93690f3e6>\\\"\\u001b[0;36m, line \\u001b[0;32m2\\u001b[0m\\n\\u001b[0;31m    info_03pop. (\\\"stu10003\\\")\\u001b[0m\\n\\u001b[0m                ^\\u001b[0m\\n\\u001b[0;31mSyntaxError\\u001b[0m\\u001b[0;31m:\\u001b[0m invalid syntax\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"# 字典的删除 \\n\",\n",
    "    \"info_03pop. (\\\"stu10003\\\")\\n\",\n",
    "    \"print(info_03)\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 41,\n",
    "   \"id\": \"ac6fe371\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"name\": \"stdout\",\n",
    "     \"output_type\": \"stream\",\n",
    "     \"text\": [\n",
    "      \"{'stu1001': 'xiaoming', 'stu1002': 'lihua'}\\n\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"# 字典的删除 \\n\",\n",
    "    \"info_03.popitem()\\n\",\n",
    "    \"print(info_03)\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"867481b7\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"## 联系目标\\n\",\n",
    "    \"* 取出一个roads\\n\",\n",
    "    \"* 取出一个roads 的 name\\n\",\n",
    "    \"* 取出一个roads 的direction 路的朝向\\n\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 48,\n",
    "   \"id\": \"e38c26cf\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [],\n",
    "   \"source\": [\n",
    "    \"广州南方学院 = {'status': '1',\\n\",\n",
    "    \" 'regeocode': {'roads': [{'id': '020F49F0050461206',\\n\",\n",
    "    \"    'location': '113.678,23.6284',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'name': '博学路',\\n\",\n",
    "    \"    'distance': '7.63232'},\\n\",\n",
    "    \"   {'id': '020F49F0050462229',\\n\",\n",
    "    \"    'location': '113.679,23.6245',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'name': '老虎形街',\\n\",\n",
    "    \"    'distance': '445.159'},\\n\",\n",
    "    \"   {'id': '020F49F0050462451',\\n\",\n",
    "    \"    'location': '113.677,23.6347',\\n\",\n",
    "    \"    'direction': '南',\\n\",\n",
    "    \"    'name': '中山路',\\n\",\n",
    "    \"    'distance': '708.299'}],\\n\",\n",
    "    \"  'roadinters': [{'second_name': '中山路',\\n\",\n",
    "    \"    'first_id': '020F49F0050461206',\\n\",\n",
    "    \"    'second_id': '020F49F0050462451',\\n\",\n",
    "    \"    'location': '113.676794,23.634661',\\n\",\n",
    "    \"    'distance': '708.299',\\n\",\n",
    "    \"    'first_name': '博学路',\\n\",\n",
    "    \"    'direction': '南'}],\\n\",\n",
    "    \"  'formatted_address': '广东省广州市从化区温泉镇博学路',\\n\",\n",
    "    \"  'addressComponent': {'city': '广州市',\\n\",\n",
    "    \"   'province': '广东省',\\n\",\n",
    "    \"   'adcode': '440117',\\n\",\n",
    "    \"   'district': '从化区',\\n\",\n",
    "    \"   'towncode': '440117100000',\\n\",\n",
    "    \"   'streetNumber': {'number': '24号',\\n\",\n",
    "    \"    'location': '113.677267,23.629149',\\n\",\n",
    "    \"    'direction': '西北',\\n\",\n",
    "    \"    'distance': '129.943',\\n\",\n",
    "    \"    'street': '博学路'},\\n\",\n",
    "    \"   'country': '中国',\\n\",\n",
    "    \"   'township': '温泉镇',\\n\",\n",
    "    \"   'businessAreas': [[]],\\n\",\n",
    "    \"   'building': {'name': [], 'type': []},\\n\",\n",
    "    \"   'neighborhood': {'name': [], 'type': []},\\n\",\n",
    "    \"   'citycode': '020'},\\n\",\n",
    "    \"  'aois': [],\\n\",\n",
    "    \"  'pois': [{'id': 'B0FFG4TAF2',\\n\",\n",
    "    \"    'direction': '东南',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉镇乌土村松浪队5号(近博学路)',\\n\",\n",
    "    \"    'poiweight': '0.237309',\\n\",\n",
    "    \"    'name': '广州南方公寓',\\n\",\n",
    "    \"    'location': '113.678983,23.627778',\\n\",\n",
    "    \"    'distance': '102.617',\\n\",\n",
    "    \"    'tel': '13622768437',\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;住宅小区'},\\n\",\n",
    "    \"   {'id': 'B0H6FA18J5',\\n\",\n",
    "    \"    'direction': '东南',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '从莞深高速(广州南方学院南侧)',\\n\",\n",
    "    \"    'poiweight': '0.223065',\\n\",\n",
    "    \"    'name': '保利半山花园',\\n\",\n",
    "    \"    'location': '113.679358,23.627672',\\n\",\n",
    "    \"    'distance': '139.054',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;住宅区'},\\n\",\n",
    "    \"   {'id': 'B00140TWHT',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '笃行路2',\\n\",\n",
    "    \"    'poiweight': '0.157653',\\n\",\n",
    "    \"    'name': '教工住宅1号',\\n\",\n",
    "    \"    'location': '113.678490,23.630432',\\n\",\n",
    "    \"    'distance': '222.658',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;住宅小区'},\\n\",\n",
    "    \"   {'id': 'B0FFHRJDM9',\\n\",\n",
    "    \"    'direction': '东南',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '中大南方学院南门1号',\\n\",\n",
    "    \"    'poiweight': '0.256152',\\n\",\n",
    "    \"    'name': '中南公寓',\\n\",\n",
    "    \"    'location': '113.680349,23.627573',\\n\",\n",
    "    \"    'distance': '231.723',\\n\",\n",
    "    \"    'tel': '13711245345',\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;住宅小区'},\\n\",\n",
    "    \"   {'id': 'B0HGD588HJ',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼4号',\\n\",\n",
    "    \"    'location': '113.677460,23.630490',\\n\",\n",
    "    \"    'distance': '242.901',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0FFHZH0IK',\\n\",\n",
    "    \"    'direction': '西北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路广州南方学院综合楼内',\\n\",\n",
    "    \"    'poiweight': '0.17934',\\n\",\n",
    "    \"    'name': '地下铁',\\n\",\n",
    "    \"    'location': '113.677941,23.629029',\\n\",\n",
    "    \"    'distance': '74.1376',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '餐饮服务;冷饮店;冷饮店'},\\n\",\n",
    "    \"   {'id': 'B0HGDU76L2',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院2号实验楼',\\n\",\n",
    "    \"    'location': '113.678211,23.630956',\\n\",\n",
    "    \"    'distance': '280.003',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0FFKP838K',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路25',\\n\",\n",
    "    \"    'poiweight': '0.191742',\\n\",\n",
    "    \"    'name': '教学楼3号(外国语学院)',\\n\",\n",
    "    \"    'location': '113.677247,23.630947',\\n\",\n",
    "    \"    'distance': '298.093',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;高等院校'},\\n\",\n",
    "    \"   {'id': 'B0HGDU8NLD',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路附近',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院1号实验楼',\\n\",\n",
    "    \"    'location': '113.678215,23.631370',\\n\",\n",
    "    \"    'distance': '326.007',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0HGD58UTU',\\n\",\n",
    "    \"    'direction': '西北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路',\\n\",\n",
    "    \"    'poiweight': '0.191229',\\n\",\n",
    "    \"    'name': '广州南方学院2号教学楼',\\n\",\n",
    "    \"    'location': '113.677060,23.631346',\\n\",\n",
    "    \"    'distance': '346.352',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B00140MR9A',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882号',\\n\",\n",
    "    \"    'poiweight': '0.450402',\\n\",\n",
    "    \"    'name': '广州南方学院',\\n\",\n",
    "    \"    'location': '113.679262,23.632583',\\n\",\n",
    "    \"    'distance': '471.564',\\n\",\n",
    "    \"    'tel': '020-87828988;020-61787331',\\n\",\n",
    "    \"    'type': '科教文化服务;学校;高等院校'},\\n\",\n",
    "    \"   {'id': 'B0HGDU92JD',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': [],\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼1号',\\n\",\n",
    "    \"    'location': '113.677077,23.631783',\\n\",\n",
    "    \"    'distance': '391.548',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0HGD592BJ',\\n\",\n",
    "    \"    'direction': '东北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道886号广州南方学院内',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院综合楼',\\n\",\n",
    "    \"    'location': '113.680117,23.631544',\\n\",\n",
    "    \"    'distance': '392.731',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0FFKP81F0',\\n\",\n",
    "    \"    'direction': '西北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路19号附近',\\n\",\n",
    "    \"    'poiweight': '0.191742',\\n\",\n",
    "    \"    'name': '教学楼1号(文学与传媒学院)',\\n\",\n",
    "    \"    'location': '113.676866,23.631736',\\n\",\n",
    "    \"    'distance': '393.93',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;科教文化场所;科教文化场所'},\\n\",\n",
    "    \"   {'id': 'B0FFLBEOND',\\n\",\n",
    "    \"    'direction': '东北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '从莞深高速(广州南方学院)',\\n\",\n",
    "    \"    'poiweight': '0.190963',\\n\",\n",
    "    \"    'name': '聚贤楼10号',\\n\",\n",
    "    \"    'location': '113.681253,23.631036',\\n\",\n",
    "    \"    'distance': '418.51',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;宿舍'},\\n\",\n",
    "    \"   {'id': 'B0FFH6K3U9',\\n\",\n",
    "    \"    'direction': '西北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\\n\",\n",
    "    \"    'poiweight': '0.254885',\\n\",\n",
    "    \"    'name': '广州中大南方招待所',\\n\",\n",
    "    \"    'location': '113.676330,23.631332',\\n\",\n",
    "    \"    'distance': '378.102',\\n\",\n",
    "    \"    'tel': '020-61787222',\\n\",\n",
    "    \"    'type': '住宿服务;住宿服务相关;住宿服务相关'},\\n\",\n",
    "    \"   {'id': 'B0HGD58NF8',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882号广州南方学院新综合楼2层',\\n\",\n",
    "    \"    'poiweight': '0.191229',\\n\",\n",
    "    \"    'name': '广州南方学院达人书院',\\n\",\n",
    "    \"    'location': '113.679041,23.632392',\\n\",\n",
    "    \"    'distance': '446.366',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;科教文化场所;科教文化场所'},\\n\",\n",
    "    \"   {'id': 'B0FFKUVYWV',\\n\",\n",
    "    \"    'direction': '东北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '保利桃花源',\\n\",\n",
    "    \"    'poiweight': '0.273168',\\n\",\n",
    "    \"    'name': '广州和风庭阿七度假别墅',\\n\",\n",
    "    \"    'location': '113.681736,23.630569',\\n\",\n",
    "    \"    'distance': '424.35',\\n\",\n",
    "    \"    'tel': '18681565305',\\n\",\n",
    "    \"    'type': '住宿服务;住宿服务相关;住宿服务相关'},\\n\",\n",
    "    \"   {'id': 'B0HGDU99RM',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882号广州南方学院内',\\n\",\n",
    "    \"    'poiweight': '0.257947',\\n\",\n",
    "    \"    'name': '广州南方学院图书馆',\\n\",\n",
    "    \"    'location': '113.679177,23.632762',\\n\",\n",
    "    \"    'distance': '489.331',\\n\",\n",
    "    \"    'tel': '020-61787368;020-61787371',\\n\",\n",
    "    \"    'type': '科教文化服务;图书馆;图书馆'},\\n\",\n",
    "    \"   {'id': 'B0HGDU92JC',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路附近',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院4号实验楼',\\n\",\n",
    "    \"    'location': '113.679963,23.632652',\\n\",\n",
    "    \"    'distance': '498.883',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0FFL7C054',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉镇博学路882号(广州南方学院商业中心1层)',\\n\",\n",
    "    \"    'poiweight': '0.317505',\\n\",\n",
    "    \"    'name': '广州U优森特酒店',\\n\",\n",
    "    \"    'location': '113.679226,23.632528',\\n\",\n",
    "    \"    'distance': '464.819',\\n\",\n",
    "    \"    'tel': '15813395296',\\n\",\n",
    "    \"    'type': '住宿服务;住宿服务相关;住宿服务相关'},\\n\",\n",
    "    \"   {'id': 'B0FFG8CSEK',\\n\",\n",
    "    \"    'direction': '东北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '从莞深高速(广州南方学院)',\\n\",\n",
    "    \"    'poiweight': '0.185371',\\n\",\n",
    "    \"    'name': 'L5员工宿舍',\\n\",\n",
    "    \"    'location': '113.682583,23.631487',\\n\",\n",
    "    \"    'distance': '554.129',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '商务住宅;住宅区;宿舍'},\\n\",\n",
    "    \"   {'id': 'B0HGD58FR2',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '广州南方学院',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼9号',\\n\",\n",
    "    \"    'location': '113.679747,23.633032',\\n\",\n",
    "    \"    'distance': '532.163',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0HG5Z9JNK',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路',\\n\",\n",
    "    \"    'poiweight': '0.221553',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼7号',\\n\",\n",
    "    \"    'location': '113.678600,23.633330',\\n\",\n",
    "    \"    'distance': '544.868',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0HGD599JM',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882号广州南方学院',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院第11教学楼',\\n\",\n",
    "    \"    'location': '113.680037,23.633173',\\n\",\n",
    "    \"    'distance': '556.036',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0GUJYPEG2',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882号广州南方学院内博学路6号之3',\\n\",\n",
    "    \"    'poiweight': '0.216026',\\n\",\n",
    "    \"    'name': '怒烤烤串(从化店)',\\n\",\n",
    "    \"    'location': '113.677160,23.632910',\\n\",\n",
    "    \"    'distance': '510.112',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '餐饮服务;中餐厅;特色/地方风味餐厅'},\\n\",\n",
    "    \"   {'id': 'B0HGDU6Z41',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '温泉大道882',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼6号',\\n\",\n",
    "    \"    'location': '113.678424,23.633710',\\n\",\n",
    "    \"    'distance': '586.331',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'},\\n\",\n",
    "    \"   {'id': 'B0HGD580NZ',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '博学路7号附近',\\n\",\n",
    "    \"    'poiweight': '0.285712',\\n\",\n",
    "    \"    'name': '广州南方学院惟贤门',\\n\",\n",
    "    \"    'location': '113.678437,23.633721',\\n\",\n",
    "    \"    'distance': '587.601',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;高等院校'},\\n\",\n",
    "    \"   {'id': 'B0HGDU7T1K',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '从莞深高速(广州南方学院)',\\n\",\n",
    "    \"    'poiweight': '0.191229',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼10号',\\n\",\n",
    "    \"    'location': '113.680125,23.633492',\\n\",\n",
    "    \"    'distance': '592.504',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;科教文化场所;科教文化场所'},\\n\",\n",
    "    \"   {'id': 'B0HGDU76L1',\\n\",\n",
    "    \"    'direction': '北',\\n\",\n",
    "    \"    'businessarea': [],\\n\",\n",
    "    \"    'address': '中山路与博学路交叉口东南150米',\\n\",\n",
    "    \"    'poiweight': '0.221662',\\n\",\n",
    "    \"    'name': '广州南方学院教学楼5号',\\n\",\n",
    "    \"    'location': '113.678046,23.633982',\\n\",\n",
    "    \"    'distance': '616.848',\\n\",\n",
    "    \"    'tel': [],\\n\",\n",
    "    \"    'type': '科教文化服务;学校;学校'}]},\\n\",\n",
    "    \" 'info': 'OK',\\n\",\n",
    "    \" 'infocode': '10000'}\"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"markdown\",\n",
    "   \"id\": \"cb023d54\",\n",
    "   \"metadata\": {},\n",
    "   \"source\": [\n",
    "    \"## 取出教师公寓住宅1号的信息\\n\",\n",
    "    \"* 取出教师公寓住宅1号_name =    \\n\",\n",
    "    \"* 取出教师公寓住宅1号_adddress =     \\n\",\n",
    "    \"* 取出教师公寓住宅1号_location =    \\n\",\n",
    "    \"* 取出教师公寓住宅1号_type =    \\n\",\n",
    "    \"* 取出教师公寓住宅1号_direction =    \"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": 49,\n",
    "   \"id\": \"707f13bb\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [\n",
    "    {\n",
    "     \"ename\": \"KeyError\",\n",
    "     \"evalue\": \"'adddress'\",\n",
    "     \"output_type\": \"error\",\n",
    "     \"traceback\": [\n",
    "      \"\\u001b[0;31m---------------------------------------------------------------------------\\u001b[0m\",\n",
    "      \"\\u001b[0;31mKeyError\\u001b[0m                                  Traceback (most recent call last)\",\n",
    "      \"\\u001b[0;32m<ipython-input-49-0248ea1929ed>\\u001b[0m in \\u001b[0;36m<module>\\u001b[0;34m\\u001b[0m\\n\\u001b[1;32m      1\\u001b[0m \\u001b[0m取出教师公寓住宅1号_name\\u001b[0m \\u001b[0;34m=\\u001b[0m \\u001b[0m广州南方学院\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'regeocode'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'pois'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;36m2\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'name'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0m\\n\\u001b[0;32m----> 2\\u001b[0;31m \\u001b[0m取出教师公寓住宅1号_adddress\\u001b[0m \\u001b[0;34m=\\u001b[0m \\u001b[0m广州南方学院\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'regeocode'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'pois'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;36m2\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'adddress'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0m\\n\\u001b[0m\\u001b[1;32m      3\\u001b[0m \\u001b[0m取出教师公寓住宅1号_location\\u001b[0m \\u001b[0;34m=\\u001b[0m \\u001b[0m广州南方学院\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'regeocode'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'pois'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;36m2\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'type'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0m\\n\\u001b[1;32m      4\\u001b[0m \\u001b[0m取出教师公寓住宅1号_type\\u001b[0m \\u001b[0;34m=\\u001b[0m \\u001b[0m广州南方学院\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'regeocode'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'pois'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;36m2\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'name'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0m\\n\\u001b[1;32m      5\\u001b[0m \\u001b[0m取出教师公寓住宅1号_direction\\u001b[0m \\u001b[0;34m=\\u001b[0m \\u001b[0m广州南方学院\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'regeocode'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'pois'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;36m2\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m[\\u001b[0m\\u001b[0;34m'direction'\\u001b[0m\\u001b[0;34m]\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0;34m\\u001b[0m\\u001b[0m\\n\",\n",
    "      \"\\u001b[0;31mKeyError\\u001b[0m: 'adddress'\"\n",
    "     ]\n",
    "    }\n",
    "   ],\n",
    "   \"source\": [\n",
    "    \"取出教师公寓住宅1号_name = 广州南方学院['regeocode']['pois'][2]['name']\\n\",\n",
    "    \"取出教师公寓住宅1号_adddress = 广州南方学院['regeocode']['pois'][2]['adddress']\\n\",\n",
    "    \"取出教师公寓住宅1号_location = 广州南方学院['regeocode']['pois'][2]['type']  \\n\",\n",
    "    \"取出教师公寓住宅1号_type = 广州南方学院['regeocode']['pois'][2]['name']  \\n\",\n",
    "    \"取出教师公寓住宅1号_direction = 广州南方学院['regeocode']['pois'][2]['direction'] \"\n",
    "   ]\n",
    "  },\n",
    "  {\n",
    "   \"cell_type\": \"code\",\n",
    "   \"execution_count\": null,\n",
    "   \"id\": \"063a3962\",\n",
    "   \"metadata\": {},\n",
    "   \"outputs\": [],\n",
    "   \"source\": []\n",
    "  }\n",
    " ],\n",
    " \"metadata\": {\n",
    "  \"kernelspec\": {\n",
    "   \"display_name\": \"Python 3\",\n",
    "   \"language\": \"python\",\n",
    "   \"name\": \"python3\"\n",
    "  },\n",
    "  \"language_info\": {\n",
    "   \"codemirror_mode\": {\n",
    "    \"name\": \"ipython\",\n",
    "    \"version\": 3\n",
    "   },\n",
    "   \"file_extension\": \".py\",\n",
    "   \"mimetype\": \"text/x-python\",\n",
    "   \"name\": \"python\",\n",
    "   \"nbconvert_exporter\": \"python\",\n",
    "   \"pygments_lexer\": \"ipython3\",\n",
    "   \"version\": \"3.8.8\"\n",
    "  }\n",
    " },\n",
    " \"nbformat\": 4,\n",
    " \"nbformat_minor\": 5\n",
    "}\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
